<?php
//php中的each遍历函数
include '../fns/fn.php';
$arr1=array(
    array(
        "title"=>"好好",
        "click"=>"123"
    ),
     array(
         "title"=>"坏坏",
         "click"=>"2222" 
    )
);
//p(each($arr1));//遍历函数each返回的也是数组

//while ($user=each($arr1)){
//     echo "标题为：{$user['value']['title']}<br/>";
//     echo "点击次数：{$user['value']['click']}<br/>";
//}

//php中的list遍历函数，同上

//list($a,$b)=array('a','b');
//$a=a
//$b=b
        

while (list($k,$v)=each($arr1)){
    echo "标题为：{$v['title']}<br/>";
     echo "点击次数：{$v['click']}<br/>";
}




?>